package com.woniu.guoguo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author Richie
 * @since 2020-11-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("order")
@AllArgsConstructor
@NoArgsConstructor
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 订单套餐描述
     */
    private String description;

    /**
     * 订单金额
     */
    private String price;

    /**
     * 订单状态(0为未消费，1为已消费，2为已退款）
     */
    private Integer state;

    /**
     * 商家id
     */
    private Integer shopId;

    /**
     * 核对码(线上下的核对)
     */
    private String checkCode;

    /**
     * 套餐id
     */
    private Integer menuId;

    /**
     * 套餐数量
     */
    private Integer number;

    private String outTradeNo;


}
